import request from '@/utils/request'

export default {
  // 获取分类列表
  getCategoryList() {
    return request.get('/wx/farmer/categories/cli-list')
  },

  // 获取商品列表
  getGoodsListByCategoryId(data) {
    return request.post('/wx/farmer/categories/list', data)
  },

  // 获取商品详情
  getGoodsDetail(id) {
    return request.get(`/wx/farmer/goods/${id}`)
  }
}   